<template>
  <div class="movieava-wrap">
    <div class="wrap-left">
      <div class="JQ-wrap">
        <!-- 标题插槽 -->
        <titleP><span slot="tit">剧情简介</span></titleP>
        <span>{{ MhotDatas.jieshao }}</span>
      </div>
      <div class="JQ-wrap yanzhiP">
        <titleP><span slot="tit">演职人员</span></titleP>
        <div class="yanzhiP-wrap">
          <div v-for="(item, index) in MhotDatasYY">
            <img :src="item.avatar" />
            <span class="fz-uname">{{ item.uname }}</span>
          </div>
        </div>
      </div>
      <div class="JQ-wrap tuji-wrap">
        <titleP><span slot="tit">图集</span></titleP>
        <div class="tuji-wrap-image">
            <img
              :src="MhotDatasTT[index]"
              v-for="(item, index) in MhotDatasTT"
              ></img>
        </div>
      </div>
    </div>
    <div class="wrap-right">
      <rightTui :MgetLx="MgetLx"></rightTui>
    </div>
  </div>
</template>

<script>
import rightTui from "./movieeava_right.vue";
import titleP from "./movieDetailTitle.vue";
export default {
  props: ["MhotDatas", "MhotDatasYY", "MhotDatasTT"],
  name: "Movieava",
  data() {
    return {
      MgetLx: [],
    };
  },
  mounted() {},
  created() {},
  components: {
    rightTui,
    titleP,
  },
  methods: {},
  watch: {
    async MhotDatas(newData) {
      var leixs = newData.leixing.split(" ")[0];

      var Mygetsal = await this.$http.get("/NowcnimenTuijian", {
        params: {
          leixing: leixs,
        },
      });
      this.MgetLx = Mygetsal.data.data.splice(1,10)
    },
  },
};
</script>

<style lang="scss" scoped>
.movieava-wrap {
  width: 1200px;
  min-height: 800px;
  margin: 20px auto;
  display: flex;
  justify-content: space-between;
  .wrap-left {
    width: 750px;
    .yanzhiP {
      margin: 50px 0 20px 0;
      .yanzhiP-wrap {
        display: flex;
        > div {
          margin-right: 45px;
          display: flex;
          align-items: center;
          flex-direction: column;
          img {
            margin-bottom: 10px;
            width: 128px;
            height: 170px;
          }
        }
      }
    }
    .tuji-wrap {
      /* width: auto;
        height: 200px; */
      img {
        width: 700px;
        height: auto;
        margin: 10px;
      }
    }
  }
  .fz-uname {
    color: rgb(185, 178, 178);
    font-size: 14px;
  }
  .wrap-right {
    width: 360px;
    min-height: 400px;
    /* background: rgb(152, 183, 230); */
    @extend .wrap-left;
  }
}
</style>
